<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <%-- 页头 --%>
    <title>订单记录 - ReadJava教程</title>
    <%@include file="../common/head.jsp" %>
</head>
<body>
<div class="wrapper">

    <%-- 导航 --%>
    <%@include file="../common/header.jsp" %>

    <%-- 侧边栏 --%>
    <%@include file="user-sidebar.jsp" %>

    <div class="main-panel">
        <div class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-header">
                                <h4 class="card-title">订单记录</h4>
                            </div>
                            <div class="card-body">
                                <div class="table-responsive">
                                    <table class="table table-bordered table-hover">
                                        <thead>
                                        <tr>
                                            <th>购买内容</th>
                                            <th>购买时间</th>
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <c:forEach items="${userOrderList}" var="order">
                                            <tr>
                                                <td>${order.orderContent}</td>
                                                <td>${order.orderTime}</td>
                                                <td><button class="btn btn-xs btn-success"
                                                            onclick="window.location.href='/user/video/detail/${order.orderVcId}'">
                                                    开始学习
                                                </button>
                                                </td>
                                            </tr>
                                        </c:forEach>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <%-- 页脚 --%>
        <%@include file="../common/footer.jsp" %>

    </div>
</div>

</body>

<%-- js --%>
<%@include file="../common/script.jsp" %>
</html>